import { h, render, Component, Fragment, toChildArray } from "../../../lib/preact";
import { useState, useEffect, useCallback, useContext, useRef } from "../../../lib/hooks";
import { Router, route, Link, Route, getCurrentUrl, Info } from '../../../lib/preact-router.es.js';
export default class Redirect extends Component {
    constructor(props) {
        super(props);

        console.log(props)
        route(this.props.to, true);
      }
    componentWillMount() {
        
      route(this.props.to, true);
    }
  
    render() {
      return null;
    }
  }